83db06d9ea8163a32e0b77294aaae6afaea00144,webofneeds/won-bot/src/main/java/won/bot/framework/eventbot/action/impl/mail/send/WonMimeMessageGenerator.java,WonMimeMessageGenerator,createHintMail,#MimeMessage#URI#,65
Before Change
public WonMimeMessage createHintMail(MimeMessage msgToRespondTo, URI remoteNeedUri) throws MessagingException, IOException {
VelocityContext velocityContext = putDefaultContent(msgToRespondTo, remoteNeedUri);
StringWriter writer = new StringWriter();
velocityEngine.getTemplate("mail-templates/hint-mail.vm").merge(velocityContext, writer);
return generateWonMimeMessage(msgToRespondTo, writer.toString(), remoteNeedUri);
}
public WonMimeMessage createMessageMail(MimeMessage msgToRespondTo, URI requesterId, URI remoteNeedUri, URI connectionUri) throws MessagingException, IOException {
After Change
velocityContext, remoteNeedUri);
}
public WonMimeMessage createHintMail(MimeMessage msgToRespondTo, URI remoteNeedUri) throws MessagingException, IOException {
VelocityContext velocityContext = putDefaultContent(msgToRespondTo, remoteNeedUri);
return generateWonMimeMessage(msgToRespondTo, velocityEngine.getTemplate("mail-templates/hint-mail.vm"),
velocityContext, remoteNeedUri);
}
public WonMimeMessage createMessageMail(MimeMessage msgToRespondTo, URI requesterId, URI remoteNeedUri, URI connectionUri) throws MessagingException, IOException {